<html {$html_attrs}>
<head>
<title>Objetivo Sisema</title>
<link REL="stylesheet" href="include/style.css" type="text/css">
<!--[if IE]>
<link REL="stylesheet" href="include/styleIE.css" type="text/css">
<![endif]-->
{BEGIN style_block}
<style>
#height100{$id} {padding:10px;}
#toplinks_caption{$id} {padding:0px 30px;font-size:12px;font-weight:bold;}
#mastertable_block{$id} {margin-left:50px;margin-top:10px}
#toplinks_block{$id} {width:100%;padding:3px;padding-left:30px}
#toplinks_block{$id} span {padding-left:5px;}
#search_records_block{$id} { padding-left:5px;}
#search_records_block{$id} > * {vertical-align:middle;}
#search_records_block{$id} select {margin:3px 0px;}
#login_block{$id} {padding:10px; margin-bottom:3px}
#login_block{$id} * {margin-left:5px; padding:5px 0px;}
#menu_block{$id} {padding:10px;}
#menu_block{$id} * {list-style-type:none;}
#menu_block{$id} IMG {vertical-align:middle;}
#record_controls{$id} {padding:10px 10px;text-align: right;}
#record_controls{$id} span{padding-left:10px;}
#recordcontrolsadd_block{$id} {padding:10px 10px;border: solid; border-width: 1px; border-color: #C0C0C0;text-align: right;}
#grid_block{$id} {border:solid 1px #C0C0C0;}
.listIcons img.listIcon{margin:0 3px;opacity:0.3;filter:alpha(opacity=30);}
.grid_recordheader {padding-top:5px;}
.grid_recordheader a {margin:0 5px;}
body {margin:0px;padding:0px;}
.bottomPanelBorder{
	/*margin-right: 10px;*/
	padding-bottom: 18px;
	border-left: 1px solid #C0C0C0;
	border-right: 1px solid #C0C0C0;
	border-bottom: 1px solid #C0C0C0;
}
#searchform{$id}{float: left;}
#searchPanelContainer{$id}{
	width: 200px;
	float: left;
	position:absolute;
}
.searchOptions {margin-top: -10px;}
/*report styles*/
#export_links{$id} * {padding:0}
</style>
{END style_block}
{BEGIN iestyle_block}
<!--[if IE]>
<style>
.grid {height:100%;}
</style>
<![endif]-->
{END iestyle_block}
</head>
<body marginheight=0 marginwidth=0 {$bodyattrs}>
{BEGIN body}
{$header}
<div id="height100{$id}">
    {BEGIN mastertable_block}
    <div id="mastertable_block{$id}">
    {$showmasterfile}
	<a {$backtomasterlink_attrs} class="toplinks"><b>Voltar para {$backtomasterlink_caption}</b></a>
	<br>
    </div>
    {END mastertable_block}

{BEGIN toplinks_block}
<div id="toplinks_block{$id}">

&nbsp;<font><b>Objetivo&nbsp;Sisema</b></font>

{BEGIN security_block}
    <span id="login_block{$id}">
    Logado Como&nbsp;<b>{$username}</b>&nbsp;
    <a href="login.php?a=logout" {$logoutlink_attrs}>Log Out</a>

                        {BEGIN adminarea_link}
            <a href="admin_rights_list.php" {$adminarealink_attrs}>Área  Admin</a>
            {END adminarea_link}

            {BEGIN changepwd_link}
        <a href="changepwd.php" {$changepwdlink_attrs}>Mudar senha</a>
        {END changepwd_link}
    </span>
{END security_block}	


    {BEGIN menu_block}
    <span id="menu_block{$id}">
        Pular Etapas:&nbsp;
        <select {$quickjump_attrs} {$quick_attrs}>
                            <option value="menu.php">Voltar ao Menu</option>
				{$quickjump_options}
        </select>
    </span>
    {END menu_block}


{BEGIN asearch_link}
<span><a href="objetivo_sisema_search.php" {$advsearchlink_attrs}>Busca Avancada</a></span>
{END asearch_link}





</div>
{END toplinks_block}

{BEGIN search_records_block} 
<div id="recordcontrolsadd_block{$id}" class="shade">
	<span id="search_records_block{$id}" class="shade">
		{BEGIN searchform}
		<!-- Search panel header for horizontal layouts -->
		<span id="searchform{$id}" align="absmiddle">
	<span id="searchPanelHeader{$id}">  
		{$simpleSearchFieldCombo}
		
		{$simpleSearchTypeCombo}
		
		{BEGIN searchform_text}
		<input type="text" {$searchfor_attrs} size="25">
		{END searchform_text}
		&nbsp;
		{BEGIN searchform_search}
			<span class="buttonborder"><input class="button" type="button" style="width: 18px; background-image: url(images/search/search.gif);" {$searchbutton_attrs} ></span>
		{END searchform_search}
		&nbsp;
		{BEGIN searchform_showall}	
		<span id="showall{$id}" class="buttonborder" {$showAllCont_attrs}><input type="button" class="button" value="Mostrar Todos" {$showallbutton_attrs}></span>
		{END searchform_showall}
	</span>
	{BEGIN searchPanelTopButtons}
	<span>
		&nbsp;
		<span class="buttonborder"><input class="button" type="button" id="showSrchWin{$id}" style="width: 18px; background-image: url(images/search/showWindowPin.gif);" {$showHideSearchWin_attrs} ></span>
		&nbsp;		
		<span class="buttonborder"><input class="button" type="button" id="showOptPanel{$id}" style="width: 18px; background-image: url(images/search/showOptions.gif);" {$showHideSearchPanel_attrs} ></span>
	</span>
	{END searchPanelTopButtons}
</span> 
	{END searchform}

		{BEGIN details_block}
		<span  {$details_attrs}>Ítens Encontrados: <b>{$records_found}</b>&nbsp;&nbsp;&nbsp;&nbsp;</span>
	{END details_block}

	{BEGIN pages_block}
		<span {$pages_attrs}>Página <b>{$page}</b> de <b>{$maxpages}</b></span>
	{END pages_block}

		&nbsp;&nbsp;&nbsp;&nbsp;
	{BEGIN recordspp_block}	<!-- class="center_block" -->
			{$recsPerPage}
	{END recordspp_block}
	</span>
</div>
{END search_records_block} 


<!-- search panel and window -->
<div id="searchPanelContainer{$id}" class="searchPanelContainer">
{$adv_search_panel}
</div>

<div moveForSearch="move{$id}" {$marginStyle}>

{BEGIN recordcontrols_block}
<div id="record_controls{$id}">

{BEGIN newrecord_controls}
<span id="newrecords_block">

{BEGIN inlineadd_link}
<span>
 	<a {$inlineaddlink_attrs}>Adicionar Novo</a>
</span>
{END inlineadd_link}
</span>
{END newrecord_controls}

{BEGIN record_controls}

{BEGIN deleteselected_link}
<span {$deleteselectedlink_span}><a href="#" {$deleteselectedlink_attrs}>Elimina Selecionados</a></span>
{END deleteselected_link}

{BEGIN editselected_link}
<span {$editselectedlink_span}><a href="#" {$editselectedlink_attrs}>Editar selecionado</a></span>
{END editselected_link}
{BEGIN saveall_link}
<span {$savealllink_span}><a href="#" {$savealllink_attrs}>Salvar todos</a></span>
{END saveall_link}
{BEGIN cancelall_link}
<span {$cancelalllink_span}><a href="#" {$cancelalllink_attrs}>Cancelar Edição</a></span>
{END cancelall_link}


{END record_controls}

</div>
{END recordcontrols_block}

<div id="usermessage{$id}" class="message">{$user_message}</div>


{BEGIN grid_block}
<div id="resize_cell{$id}">
<table name="maintable" cellspacing=2 cellpadding=3 border=0 id="grid_block{$id}">
{BEGIN grid_header}
<thead>
<tr valign="top" {$gridHeader_attrs}>
{BEGIN record_header}

{BEGIN listIcons_column}
	<th align="center" class="blackshade" {$widthListIcons} iEditCont="all" nowrap="nowrap">&nbsp;</th>
{END listIcons_column}

{BEGIN checkbox_column}
<th width="20" class="blackshade" align="left">
{BEGIN checkbox_header}
<input type="checkbox" {$checkboxheader_attrs}>
{END checkbox_header}
</th>
{END checkbox_column}

{BEGIN sigap_objetivo_sisema_dtable_column}
<th  align="left" class="blackshade">&nbsp;</th>
{END sigap_objetivo_sisema_dtable_column}

{BEGIN id_perspectiva_sisema_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
{BEGIN id_perspectiva_sisema_fieldheader}
<a class="defblackshade" {$id_perspectiva_sisema_orderlinkattrs}>Perspectiva Sisema</a>
{END id_perspectiva_sisema_fieldheader}
&nbsp;
</th>
{END id_perspectiva_sisema_fieldheadercolumn}
{BEGIN objetivo_sisema_fieldheadercolumn}
<th class="blackshade" align="left">&nbsp;
{BEGIN objetivo_sisema_fieldheader}
<a class="defblackshade" {$objetivo_sisema_orderlinkattrs}>Objetivo Sisema</a>
{END objetivo_sisema_fieldheader}
&nbsp;
</th>
{END objetivo_sisema_fieldheadercolumn}
{BEGIN endrecordheader_block}
<th>&nbsp;</th>
{END endrecordheader_block}

{END record_header}
</tr>
</thead>
{END grid_header}

<tbody>
{BEGIN grid_row}
<tr valign="top" {$rowstyle} {$rowattrs}> 
{BEGIN grid_record}

{BEGIN listIcons_column}
	<td align="left" class="listIcons" iEditCont="all" valign="middle" nowrap="nowrap">
	
		{BEGIN inlineedit_column}
	{BEGIN inlineedit_link}
	<a {$inlineeditlink_attrs} title="Editar"><img class="listIcon" src="images/icon_inline_edit_new.gif" align="middle" alt="Editar" border="0"></a>
	{END inlineedit_link}
	{END inlineedit_column}

	
		</td>
{END listIcons_column}	

{BEGIN checkbox_column}
<td align="left" valign="middle" width="20" >
{BEGIN checkbox}
<input type="checkbox" {$checkbox_attrs}>
{END checkbox}
</td>
{END checkbox_column}

{BEGIN sigap_objetivo_sisema_dtable_column}
<td align="left" valign="middle" nowrap="nowrap">
{BEGIN macro_objetivo_dtable_link}
<a  {$macro_objetivo_dtablelink_attrs}>Macro Objetivo
	<span {$macro_objetivo_childnumber_attr}>{BEGIN macro_objetivo_childcount}({$macro_objetivo_childnumber}){END macro_objetivo_childcount}</span>
</a>
&nbsp;

{END macro_objetivo_dtable_link}
{BEGIN objetivo_estrategico_dtable_link}
<a  {$objetivo_estrategico_dtablelink_attrs}>Objetivo Estrategico
	<span {$objetivo_estrategico_childnumber_attr}>{BEGIN objetivo_estrategico_childcount}({$objetivo_estrategico_childnumber}){END objetivo_estrategico_childcount}</span>
</a>
&nbsp;

{END objetivo_estrategico_dtable_link}
{BEGIN programas_manejo_dtable_link}
<a  {$programas_manejo_dtablelink_attrs}>Programas Manejo
	<span {$programas_manejo_childnumber_attr}>{BEGIN programas_manejo_childcount}({$programas_manejo_childnumber}){END programas_manejo_childcount}</span>
</a>
&nbsp;

{END programas_manejo_dtable_link}
{BEGIN sub_programas_dtable_link}
<a  {$sub_programas_dtablelink_attrs}>Sub Programas
	<span {$sub_programas_childnumber_attr}>{BEGIN sub_programas_childcount}({$sub_programas_childnumber}){END sub_programas_childcount}</span>
</a>
&nbsp;

{END sub_programas_dtable_link}
{BEGIN indicador_dtable_link}
<a  {$indicador_dtablelink_attrs}>Indicador
	<span {$indicador_childnumber_attr}>{BEGIN indicador_childcount}({$indicador_childnumber}){END indicador_childcount}</span>
</a>
&nbsp;

{END indicador_dtable_link}
{BEGIN objetivo_estrat_uc_dtable_link}
<a  {$objetivo_estrat_uc_dtablelink_attrs}>Objetivo Estratégico da UC
	<span {$objetivo_estrat_uc_childnumber_attr}>{BEGIN objetivo_estrat_uc_childcount}({$objetivo_estrat_uc_childnumber}){END objetivo_estrat_uc_childcount}</span>
</a>
&nbsp;

{END objetivo_estrat_uc_dtable_link}
</td>
{END sigap_objetivo_sisema_dtable_column}

{BEGIN id_perspectiva_sisema_fieldcolumn}
<td valign="middle" {$id_perspectiva_sisema_style}>
{$id_perspectiva_sisema_value}
</td>
{END id_perspectiva_sisema_fieldcolumn}
{BEGIN objetivo_sisema_fieldcolumn}
<td valign="middle" {$objetivo_sisema_style}>
{$objetivo_sisema_value}
</td>
{END objetivo_sisema_fieldcolumn}

{BEGIN endrecord_block}
<td class="body2" {$endrecordblock_attrs}>&nbsp;</td>
{END endrecord_block}
{END grid_record}
</tr>
{END grid_row}
</tbody>

</table>
</div>
{END grid_block}

</div>


{BEGIN pagination_block}
<div id="pagination_block{$id}" align="center" class="toplist" >{$pagination}</div>
{END pagination_block}

{BEGIN message_block}
<div id="message_block{$id}" align=center valign=middle class=toplist><b>{$message}</b></div>
{END message_block}

</div>
{$footer}
{END body}
</body>
</html>